<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2018/10/10
 * Time: 9:52
 */
include "config.php";
$u_id=$_REQUEST["uid"];
$c_name=$_REQUEST["cname"];
$c_num=$_REQUEST["num"];
$sql="UPDATE cart SET c_num=".$c_num." WHERE u_id=".$u_id." AND c_name='".$c_name."'";
$link->query($sql);
$link->close();